package com.scpii.universal.service;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.entity.ShareTab;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.util.SpringBeanFactory;

public class ShareTabService implements BaseInterface<ShareTab> {
	private static final Logger log = LoggerFactory
			.getLogger(ShareTabService.class);
//	private BaseDao<ShareTab> shareTabDao = SpringBeanFactory.shareTabDao;
	private BaseDao<ShareTab> shareTabDao;
	
	public ShareTab get(Integer id) throws Exception {
		return shareTabDao.get(id);
	}

	public List<ShareTab> getAll() throws Exception {
		return shareTabDao.getAll();
	}

	public ShareTab get(String propertyName, Object value) throws Exception {
		return null;
	}

	public List<ShareTab> getList(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public Long getTotalCount() throws Exception {
		return null;
	}

	public void save(ShareTab obj) throws Exception {
		shareTabDao.save(obj);
	}

	public void update(ShareTab obj) throws Exception {

	}

	public void delete(ShareTab obj) throws Exception {

	}

	public void delete(Integer id) throws Exception {

	}

	public List<ShareTab> hqlGetList(String hql, Map<String, Object> argsMap)
			throws Exception {
		return shareTabDao.hqlGetList(hql, argsMap);
	}

	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		shareTabDao.hqlUpdate(namedHqlQuery, argsMap);
	}

	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		return shareTabDao.hqlGetNums(namedHqlQuery, argsMap);
	}

	public List<ShareTab> sqlGetList(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return shareTabDao.sqlGetList(sqls, argsMap);
	}

	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		shareTabDao.sqlUpdate(sqls, argsMap);
	}

	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return shareTabDao.sqlGetNum(sqls, argsMap);
	}

	//Setter
	public void setShareTabDao(BaseDao<ShareTab> shareTabDao) {
		this.shareTabDao = shareTabDao;
	}
}